/* ======使用注明=======
 //#import "SEGElevatorControllSingleDoorView.h"
 //@property (nonatomic, strong)SEGElevatorControllSingleDoorView *varElevatorControllSingleDoorView; <#注释#>
 // 控件数据模型创建
 SEGElevatorControllSingleDoorViewModel *data = [[SEGElevatorControllSingleDoorViewModel alloc]init];
 // 控件内容布局计算
 SEGElevatorControllSingleDoorViewLayout *layout = [[SEGElevatorControllSingleDoorViewLayout alloc]initWithData:data type:SEGEnumElevatorControllSingleDoorViewType_NO];
 // 内容布局填充到视图
 SEGElevatorControllSingleDoorView *varElevatorControllSingleDoorView = [[SEGElevatorControllSingleDoorView alloc]initWithFrame:CGRectZero];
 //varElevatorControllSingleDoorView.delegate = self;
 varElevatorControllSingleDoorView.left = 0;
 varElevatorControllSingleDoorView.top = 0;
 varElevatorControllSingleDoorView.width = LYScreenWidth();
 varElevatorControllSingleDoorView.height = varElevatorControllSingleDoorView.layout.totalHeight;
 [varElevatorControllSingleDoorView setWithLayout:layout];
 
 */
#import <UIKit/UIKit.h>

#define kElevatorControllSingleDoorViewHeight 100     // ElevatorControllSingleDoorView的高度

typedef NS_ENUM(NSUInteger, SEGEnumElevatorControllSingleDoorViewType) {
    SEGEnumElevatorControllSingleDoorViewType_NO = 0, /*默认*/
};

@protocol SEGprotocolElevatorControllSingleDoorViewDelegate <NSObject>
@optional
-(void)SEGprotocoldoorNameLabel:(SEGLabel*)sender;


@end

@interface SEGElevatorControllSingleDoorViewModel : NSObject
@property (nonatomic, copy) NSString *doorName; // <#注释#>
@property (nonatomic, copy) NSString *doorImage; // <#注释#>
@property (nonatomic, assign) CGFloat widgetWidth;//控件宽度
@property (nonatomic, strong)id businessData;

-(instancetype)init;
@end

@interface SEGElevatorControllSingleDoorViewLayout : NSObject
@property (nonatomic, assign,readonly) CGFloat totalHeight;//控件总高度
@property (nonatomic, assign,readonly) SEGEnumElevatorControllSingleDoorViewType type;//控件类型
@property (nonatomic, strong,readonly)SEGElevatorControllSingleDoorViewModel *data;
- (instancetype)initWithData:(SEGElevatorControllSingleDoorViewModel *)data type:(SEGEnumElevatorControllSingleDoorViewType)type;
-(void)segElevatorControllSingleDoorViewLayout;

@property (nonatomic, assign) CGFloat doorNameLabelHeight;//doorNameLabel 高度
@property (nonatomic, strong) SEGTextLayout *doorNameLabelTextLayout;//doorNameLabel 富文本布局

@end

@interface SEGElevatorControllSingleDoorView : UIView
@property (nonatomic, strong,readonly)SEGElevatorControllSingleDoorViewLayout *layout;
- (void)setWithLayout:(SEGElevatorControllSingleDoorViewLayout *)layout;

@property (nonatomic, strong) SEGLabel *doorNameLabel; // <#注释#>

@property (nonatomic, strong) UIImageView *doorImageView; // <#注释#>

@property (nonatomic, assign) id<SEGprotocolElevatorControllSingleDoorViewDelegate> delegate;// 代理
@end

